\hypertarget{class_event}{\section{Event类 参考}
\label{class_event}\index{Event@{Event}}
}


事件类.  




{\ttfamily \#include $<$Event.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_event_ad9e2d5a8fa216ee069a8ab6c23017f45}{Event} (sint32 event\+I\+D, const char $\ast$param=N\+U\+L\+L, sint32 len=0)
\begin{DoxyCompactList}\small\item\em Event构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_event_a7704ec01ce91e673885792054214b3d2}{$\sim$\+Event} ()
\begin{DoxyCompactList}\small\item\em Event析构函数 \end{DoxyCompactList}\item 
uint32 \hyperlink{class_event_a040aef0f2659bb5b59f80f81f258e204}{get\+Event\+Id} ()
\begin{DoxyCompactList}\small\item\em 获取事件参数 \end{DoxyCompactList}\item 
sint32 \hyperlink{class_event_ac8d0b7908e16fa46df01c5f05aacfa07}{get\+Param} (char $\ast$buf, sint32 len)
\begin{DoxyCompactList}\small\item\em 获取事件参数 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
事件类. 

\subsection{构造及析构函数说明}
\hypertarget{class_event_ad9e2d5a8fa216ee069a8ab6c23017f45}{\index{Event@{Event}!Event@{Event}}
\index{Event@{Event}!Event@{Event}}
\subsubsection[{Event}]{\setlength{\rightskip}{0pt plus 5cm}Event\+::\+Event (
\begin{DoxyParamCaption}
\item[{sint32}]{event\+I\+D, }
\item[{const char $\ast$}]{param = {\ttfamily NULL}, }
\item[{sint32}]{param\+Len = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}\label{class_event_ad9e2d5a8fa216ee069a8ab6c23017f45}


Event构造函数 


\begin{DoxyParams}{参数}
{\em event\+I\+D} & 事件\+I\+D \\
\hline
{\em param} & 事件携带的参数 \\
\hline
{\em param\+Len} & 事件携带的参数长度,最长为\+E\+V\+E\+N\+T\+\_\+\+P\+A\+R\+A\+M\+\_\+\+M\+A\+X\+L\+E\+N字节 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_event_a7704ec01ce91e673885792054214b3d2}{\index{Event@{Event}!````~Event@{$\sim$\+Event}}
\index{````~Event@{$\sim$\+Event}!Event@{Event}}
\subsubsection[{$\sim$\+Event}]{\setlength{\rightskip}{0pt plus 5cm}Event\+::$\sim$\+Event (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_event_a7704ec01ce91e673885792054214b3d2}


Event析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


\subsection{成员函数说明}
\hypertarget{class_event_a040aef0f2659bb5b59f80f81f258e204}{\index{Event@{Event}!get\+Event\+Id@{get\+Event\+Id}}
\index{get\+Event\+Id@{get\+Event\+Id}!Event@{Event}}
\subsubsection[{get\+Event\+Id}]{\setlength{\rightskip}{0pt plus 5cm}uint32 Event\+::get\+Event\+Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_event_a040aef0f2659bb5b59f80f81f258e204}


获取事件参数 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
uint32 事件\+I\+D 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_event_ac8d0b7908e16fa46df01c5f05aacfa07}{\index{Event@{Event}!get\+Param@{get\+Param}}
\index{get\+Param@{get\+Param}!Event@{Event}}
\subsubsection[{get\+Param}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Event\+::get\+Param (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{buf, }
\item[{sint32}]{buf\+Len}
\end{DoxyParamCaption}
)}}\label{class_event_ac8d0b7908e16fa46df01c5f05aacfa07}


获取事件参数 


\begin{DoxyParams}{参数}
{\em buf} & 参数缓存地址 \\
\hline
{\em buf\+Len} & 缓存长度 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
sint32 成功返回数据长度,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_event_8h}{Event.\+h}\item 
libemb/src/Event.\+cpp\end{DoxyCompactItemize}
